package com.zzg.demo.laboratory.circulardependencies;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class TestServiceB {
    // 构造器注入（使用lombok的@RequiredArgsConstructor简化）
    private final TestServiceC testServiceC;

    public String testB(){
        String testB = "testB";
        System.out.println(testB);
        String s = testServiceC.testC();
        System.out.println(s);
        return testB;
    }
}
